import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from "@/components/auth/Login";
import Sign from "@/components/auth/Sign";
import Index from "@/components/Index/Index";
import Topics from "@/components/category/Topics";
import Home from "@/components/home/Home";
import Editor from "@/components/editor/Editor";
import Comments from "@/components/topic/Topic";

Vue.use(VueRouter)

const router = new VueRouter({
    mode: "history",
    routes: [
        {path: "/", component: Index, name: "Index"},
        {path: "/login", component: Login, name: "login"},
        {path: "/sign", component: Sign, name: "sign"},
        {path: "/topics", component: Topics, name: "topics"},
        {path: "/home", component: Home, name: "home"},
        {path: "/editor", component: Editor, name: "editor"},
        {path: "/topic", component: Comments, name: "topic"}
    ]
})

export default router